package server.exchange;

import java.net.Socket;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.logging.Logger;

public class FullClientInfo {
	private static Logger fullClientInfoLogger=Logger.getLogger(FullClientInfo.class.getName());
	public static List <StockChangeListeners> SubscribeOrderStateListeners=new ArrayList<StockChangeListeners>();
	public static List <String> SubscribeMarketDataListeners=new ArrayList<String>();
	private static Map <String,Socket> clientSockets=new HashMap<String, Socket>();
	
	public static void addClient(String clientName,Socket clientSocket){
		clientSockets.put(clientName, clientSocket);
		fullClientInfoLogger.info("Adding pair "+clientName+" "+clientSocket.toString());
	}
	public static Socket getClientsSockets(String clientName){
		fullClientInfoLogger.info("putting pair "+clientName+" "+clientSockets.get(clientName).toString());
		return clientSockets.get(clientName);
	}
}
